package com.zhi_cloud_plat2.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/") // 窄化请求，分类管理Controller
public class LoginController{
	@RequestMapping("/")
	public String showIndex(){
		return "index";
	}
	@RequestMapping("/{page}")//通过restful风格传递参数，需要在添加@PathVariable注解，而且参数名尽量于传递的参数一致，如不一致可通过value注明
	public String showPage(@PathVariable(value="page") String page) {
		return page;
	}


	

}